var express = require('express');
var router = express.Router();

let { getUserAccEssToken } = require('../controller/getUserAccessToken')
/* GET home page. */
router.get('/', function (req, res, next) {
  console.log('全局data', req.query);
  if (req.query.code) {
    getUserAccEssToken(req.query.code)
  }
  res.render('index', { title: 'Express' });
});

module.exports = router;

